package com.jindy.module.assistmaterials.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.assistmaterials.mapper.AssistMaterialsMapper;
import com.jindy.module.assistmaterials.domain.AssistMaterials;
import com.jindy.module.assistmaterials.service.IAssistMaterialsService;

/**
 * fucaishengchengService业务层处理
 * 
 * @author jindy
 * @date 2023-02-16
 */
@Service
public class AssistMaterialsServiceImpl implements IAssistMaterialsService 
{
    @Autowired
    private AssistMaterialsMapper assistMaterialsMapper;

    /**
     * 查询fucaishengcheng
     * 
     * @param id fucaishengcheng主键
     * @return fucaishengcheng
     */
    @Override
    public AssistMaterials selectAssistMaterialsById(Long id)
    {
        return assistMaterialsMapper.selectAssistMaterialsById(id);
    }

    /**
     * 查询fucaishengcheng列表
     * 
     * @param assistMaterials fucaishengcheng
     * @return fucaishengcheng
     */
    @Override
    public List<AssistMaterials> selectAssistMaterialsList(AssistMaterials assistMaterials)
    {
        return assistMaterialsMapper.selectAssistMaterialsList(assistMaterials);
    }

    /**
     * 新增fucaishengcheng
     * 
     * @param assistMaterials fucaishengcheng
     * @return 结果
     */
    @Override
    public int insertAssistMaterials(AssistMaterials assistMaterials)
    {
        return assistMaterialsMapper.insertAssistMaterials(assistMaterials);
    }

    /**
     * 修改fucaishengcheng
     * 
     * @param assistMaterials fucaishengcheng
     * @return 结果
     */
    @Override
    public int updateAssistMaterials(AssistMaterials assistMaterials)
    {
        return assistMaterialsMapper.updateAssistMaterials(assistMaterials);
    }

    /**
     * 批量删除fucaishengcheng
     * 
     * @param ids 需要删除的fucaishengcheng主键
     * @return 结果
     */
    @Override
    public int deleteAssistMaterialsByIds(Long[] ids)
    {
        return assistMaterialsMapper.deleteAssistMaterialsByIds(ids);
    }

    /**
     * 删除fucaishengcheng信息
     * 
     * @param id fucaishengcheng主键
     * @return 结果
     */
    @Override
    public int deleteAssistMaterialsById(Long id)
    {
        return assistMaterialsMapper.deleteAssistMaterialsById(id);
    }
}
